﻿
@page "/"
@namespace AcBlog.Client.Server.Pages
@model AcBlog.Client.Server.Pages.HostModel
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@Model.BlogOptions.Name</title>
    <base href="~/" />
    <link rel="icon" href="icon.png" />
    <link rel="apple-touch-icon" sizes="512x512" href="icon.png" />
    <link type="application/opensearchdescription+xml" rel="search" title="@Model.BlogOptions.Name" href="/Site/opensearch" />
    <component type="typeof(AcBlog.Extensions.StyleSheetDeclare)" render-mode="Static" />
</head>
<body>
    <app>
        <component type="typeof(AcBlog.Client.UI.App)" render-mode="ServerPrerendered" />
    </app>

    <div id="loading-info-ui" class="alert alert-info mdi mdi-information" style="display: block;">
        Loading application...
    </div>
    <div id="blazor-error-ui" class="alert alert-danger mdi mdi-alert" role="alert">
        <environment include="Staging,Production">
            An error has occurred. This application may no longer respond until reloaded.
        </environment>
        <environment include="Development">
            An unhandled exception has occurred. See browser dev tools for details.
        </environment>
        <a href="" class="reload">Reload</a>
        <a class="dismiss">🗙</a>
    </div>

    <script src="_framework/blazor.server.js"></script>

    <component type="typeof(AcBlog.Extensions.ScriptDeclare)" render-mode="Static" />
</body>
</html>
